<html>
	<head>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
	</head>

	<body>

		<script>
			console.log(typeof XLSX);
			console.log('=================>');

			// const XLSX = require('xlsx');

			// Create a new workbook and add a worksheet
			const workbook = XLSX.utils.book_new();
			const worksheetData = [
				["Name", "Age", "City"],
				["Alice", 30, "New York"],
				["Bob", 25, "Los Angeles"],
			];
			const worksheet = XLSX.utils.aoa_to_sheet(worksheetData);

			// Append the worksheet to the workbook
			XLSX.utils.book_append_sheet(workbook, worksheet, "Sheet1");

			// Write the workbook to a file
			XLSX.writeFile(workbook, "output.xlsx");

		</script>
	</body>
</html>
